import xmlrpclib
from SimpleXMLRPCServer import SimpleXMLRPCServer

def debug(message):
    print "[Debug] " + message
    return "OK"
def info(message):
    print "[Infor] " + message
server = SimpleXMLRPCServer(("localhost",8888))
print "Listening on port 8888"
server.register_function(debug,"debug")
server.serve_forever()